package com.orhonit.ipb.portal.rest;

import java.util.List;

import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import com.orhonit.ipb.portal.biz.JoApplyJoinPartyBiz;
import com.orhonit.ipb.portal.entity.JoApplyJoinParty;
import com.orhonit.ipb.security.auth.client.annotation.CheckClientToken;
import com.orhonit.ipb.security.auth.client.annotation.CheckUserToken;
import com.orhonit.ipb.security.common.rest.BaseController;

@RestController
@RequestMapping("joApplyJoinParty")
//@CheckClientToken
//@CheckUserToken
public class JoApplyJoinPartyController extends BaseController<JoApplyJoinPartyBiz,JoApplyJoinParty> {
	@Autowired
    private JoApplyJoinPartyBiz joApplyJoinPartyBiz;
	/**
	 * 申请人
	 * @return
	 */
	@RequestMapping(value="/findJoinIdByUserId",method=RequestMethod.GET)
	@ResponseBody
	public ResponseEntity<?> findTaskListByName(String userId){
		String id=joApplyJoinPartyBiz.getJoApplyJoinPartyByUserId(userId);
		return ResponseEntity.ok().body(id);
	}
	
}